import Layout from '@/layout'

// 组织
export const departmentRouter =  {
    // 路由信息
    path: '/department',
    component: Layout,
    children: [
    {
        path: '',
        name: 'department',
        component: () => import('@/views/department'),
        // 路由元信息
        meta: {
            title: '组织',
            icon: 'tree'
        }
    }
    ]
}

// 审批
export default {
    path: '/approval',
    component: Layout,
    children: [
    {
        path: '',
        name: 'approval',
        component: () => import('@/views/approval'),
        // 路由元信息
        meta: {
            title: '审批',
            icon: 'tree'
        }
        }
    ]

}
// 角色
export const roleRouter= {
    path: '/role',
    component: Layout,
    children: [
    {
        path: '',
        name: 'role',
        component: () => import('@/views/role'),
        // 路由元信息
        meta: {
            title: '角色',
            icon: 'tree'
        }
        }
    ]

}
// 考勤
export const attentdanceRouter= {
    path: '/attentdance',
    component: Layout,
    children: [
    {
        path: '',
        name: 'attentdance',
        component: () => import('@/views/attentdance'),
        // 路由元信息
        meta: {
            title: '考勤',
            icon: 'tree'
        }
        }
    ]

}
// 员工
export const employeeRouter= {
    path: '/employee',
    component: Layout,
    children: [
    {
        path: '',
        name: 'employee',
        component: () => import('@/views/employee'),
        // 路由元信息
        meta: {
            title: '员工',
            icon: 'tree'
        }
        }
    ]

}

export const salaryRouter= {
    path: '/salary',
    component: Layout,
    children: [
    {
        path: '',
        name: 'salary',
        component: () => import('@/views/salary'),
        // 路由元信息
        meta: {
            title: '工资',
            icon: 'tree'
        }
        }
    ]

}
// 权限
export const permissionRouter= {
    path: '/permission',
    component: Layout,
    children: [
    {
        path: '',
        name: 'permission',
        component: () => import('@/views/permission'),
        // 路由元信息
        meta: {
            title: '权限',
            icon: 'tree'
        }
        }
    ]

}
// 社保
export const socialRouter= {
    path: '/social',
    component: Layout,
    children: [
    {
        path: '',
        name: 'social',
        component: () => import('@/views/social/index.vue'),
        // 路由元信息
        meta: {
            title: '社保',
            icon: 'tree'
        }
        }
    ]

}